<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class GoodsBrowse extends Model
{



    public function user(){

        return $this->belongsTo(User::class , 'user_id' , 'id');
    }


    // 客户商品 表
    public function goods(){

        return $this->belongsTo(Goods::class , 'goods_id' , 'id');
    }


    // 分销商 表
    public function shop(){

        return $this->belongsTo(Shop::class , 'shop_id' , 'id');
    }




    //
}
